<div class="path fn-clear"><span class="fn-fb">首页</span><a href="###">示例应用</a></div>
<div class="button-nav">
<a href="{url('article/add',array(id=>$fid))}" class="button button-blank button-link"><i class="iconfont" title="增加会员">&#xF023;</i> 增加会员</a><span id="checkall" class="button button-blank button-link"><i class="iconfont">&#xF029;</i> 全选</span><span id="checktog" class="button button-blank button-link"><i class="iconfont">&#xF04D;</i> 反选</span><span id="checkoff" class="button button-blank button-link"><i class="iconfont">&#xF028;</i> 取消</span><span onclick="myform.submit()" class="button button-blank"><i class="iconfont">&#xF011;</i> 删除</span>
</div>
<div class="m5">
<form id="myform" action="{url('article/lists')}" method="post">
<input type="hidden" name="act" value="alldel" />
<table class="table table-bordered table-striped" width="100%">
<thead><tr><th class="w20 fn-tac">#</th><th class="fn-tal">会员名称</th><th class="w40 fn-tac">状态</th><th class="w80 fn-tac">创建时间</th><th class="w60 fn-tac">登录次数</th><th class="w80 fn-tac">最后登录时间</th><th class="w80 fn-tac">最后登录IP</th><th class="w80 fn-tac">管理操作</th></tr></thead>
<tbody>
    <tr>
      <td class="fn-tac"><input cssrain="one" type="checkbox" name="fid[]" value="{$vo['cid']}_{$vo['id']}" /></td>
      <td><a href="#">CPAPP-CPCMS应用示例测试列表数据</a></td>
      <td class="fn-tac"><a href="#">正常</a> </td>
      <td class="fn-tac">2012-07-11</td>
      <td class="fn-tac">3</td>
      <td class="fn-tac">2012-07-11</td>
      <td class="fn-tac">2012-07-11</td>
      <td class="fn-tac"><a href="#">修改</a> / <a onclick="return confirm('确定要删除吗？')" href="#">删除</a></td>
    </tr>
</tbody>
</table>
</form>
</div> 
<script type="text/javascript">
Do('base','Dialog','Tip','Tree',function(){
//状态操作
$(".goto").click(function(){
    var uid   = $(this).attr('uid');
    var fid   = $(this).attr('fid');
    var type  = $(this).attr('type');
    var state = $(this).attr('state');
    var __this= this;
    $.get(uid,{type:type,state:state,fid:fid},function(data){
        if(data=='ok'){
            $.dialog.tips('操作成功！', 1.5);
            if(state == 1){
              $('.'+type+'_'+fid).removeClass("blue").addClass ("gray");
              $('.'+type+'_'+fid).attr("state", "0"); 
            }else{
              $('.'+type+'_'+fid).removeClass("gray").addClass ("blue");
              $('.'+type+'_'+fid).attr("state", "1"); 
            }
        }else{
            $.dialog.tips('操作失败！', 1.5);
        }
    })
})
//全选
$("#all").click(function() {
    if (this.checked == true) {
        $("input[cssrain='one']").cpCheck("on");
    } else {
        $("input[cssrain='one']").cpCheck("off");
    }
});
$("#checkall").click(function() {$("input[cssrain='one']").cpCheck("on");});
$("#checkoff").click(function() {$("input[cssrain='one']").cpCheck("off");});
$("#checktog").click(function() {$("input[cssrain='one']").cpCheck("toggle");});
//删除
$('.del').click(function(){$(this).cpDelete();});
$(".tipa").powerFloat({target: $(".select-a")});
$("#mytreechannel").treeview({collapsed: true,animated: "medium",control:"#sidetreechannel",persist: "location"});
})
</script>